<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<h1 id="app">{{msg}}</h1>
<script type="text/javascript">
    var app = new Vue({
        el:"#app",
        data:{
            msg:"hello world",

        },
        created() {
            console.log("this is created hook function"+this.msg);
            this.msg="Goodbye world";
        },
        updated() {
            console.log("this is created hook function"+this.msg);

        }
    });
</script>
</body>
</html>